﻿<navigation:Page 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" 
           xmlns:uriMapper="clr-namespace:System.Windows.Navigation;assembly=System.Windows.Controls.Navigation"
           xmlns:dxn="http://schemas.devexpress.com/winfx/2008/xaml/navbar" x:Class="Crm.MainPage"
           mc:Ignorable="d"
           d:DesignWidth="1024" d:DesignHeight="768"
           Title="Home Page">
    <Grid x:Name="LayoutRoot">
        <Grid.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FF0C51AE" Offset="0"/>
                <GradientStop Color="#FF83A7D4" Offset="1"/>
            </LinearGradientBrush>
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="0.01*"/>
            <RowDefinition Height="0.98*"/>
            <RowDefinition Height="0.01*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="0.1*"/>
            <ColumnDefinition Width="0.8*"/>
            <ColumnDefinition Width="0.1*"/>
        </Grid.ColumnDefinitions>
        <Grid Grid.Column="1" Margin="0" Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.256*"/>
                <ColumnDefinition Width="0.744*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="0.139*"/>
                <RowDefinition Height="0.861*"/>
            </Grid.RowDefinitions>
            <Border BorderBrush="White" BorderThickness="2" Margin="0" RenderTransformOrigin="0.5,0.5" CornerRadius="10" Grid.ColumnSpan="2">
                <Border.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <LinearGradientBrush.RelativeTransform>
                            <CompositeTransform CenterY="0.5" CenterX="0.5"/>
                        </LinearGradientBrush.RelativeTransform>
                        <GradientStop Color="#FF85A9D5"/>
                        <GradientStop Color="#FF567EB1" Offset="1"/>
                    </LinearGradientBrush>
                </Border.Background>
                <Grid HorizontalAlignment="Left" Margin="83,35,0,33" Width="51">
                    <TextBlock x:Name="lnkTitle" Margin="0,-50,-374,-51" TextWrapping="Wrap" Text="Müşteri İlişkileri Yönetimi" Style="{StaticResource ApplicationNameStyle}" FontSize="24" FontFamily="Comic Sans MS" VerticalAlignment="Center" HorizontalAlignment="Left" Width="425" MouseLeftButtonDown="lnkTitle_MouseLeftButtonDown"/>
                    <Image x:Name="imgLogo" Source="images/crm.png" RenderTransformOrigin="3.125,0.812" Margin="-68,-12,0,-19" HorizontalAlignment="Left" Width="64" VerticalAlignment="Center" />
                </Grid>
            </Border>
            <Border x:Name="menuBorder" BorderBrush="White" BorderThickness="2" Margin="0,15,0,10" Grid.Row="1" CornerRadius="10">
                <dxn:NavBarControl x:Name="navBar" HorizontalAlignment="Stretch" Margin="1,2">
                    <dxn:NavBarControl.View>
                        <dxn:NavigationPaneView MaxVisibleGroupCount="10" />
                    </dxn:NavBarControl.View>
                    <dxn:NavBarControl.Groups>
                        <dxn:NavBarGroup Header="Cari Seç ve Değerlendir" DisplaySource="Content" ImageSource="/NavBarDemo;component/Images/NavigationPaneOptionsDemo/Mail_25.png">
                            <dxn:NavBarGroup.Content>
                                <StackPanel>
                                    <HyperlinkButton x:Name="lnkCariSec" Style="{StaticResource LinkStyle}"
                                     Click="lnkCariSec_Click_1" TargetName="ContentFrame" Content="Cari Seç"/>
                                    <HyperlinkButton x:Name="lnkAdayCari" Style="{StaticResource LinkStyle}" 
                                     Click="lnkAdayCari_Click_1" TargetName="ContentFrame" Content="Potansiyel Cari Tanımlama"/>
                                </StackPanel>
                            </dxn:NavBarGroup.Content>
                        </dxn:NavBarGroup>
                        <dxn:NavBarGroup Header="Görüşmeler ve Randevular" DisplaySource="Content" ImageSource="/NavBarDemo;component/Images/NavigationPaneOptionsDemo/Calendar_25.png">
                            <dxn:NavBarGroup.Content>
                                <StackPanel>
                                    <HyperlinkButton x:Name="lnkYeniGorusme" Click="lnkYeniGorusme_Click_1" Style="{StaticResource LinkStyle}" 
                                     NavigateUri="" TargetName="ContentFrame" Content="Yeni Görüşme"/>
                                    <HyperlinkButton x:Name="lnkGecmisGorusme" Style="{StaticResource LinkStyle}" 
                                     NavigateUri="/Liste?tip=3" TargetName="ContentFrame" Content="Geçmiş Görüşmeler"/>
                                    <HyperlinkButton x:Name="lnkYeniRandevu" Style="{StaticResource LinkStyle}" 
                                     Click="lnkYeniRandevu_Click_1"  TargetName="ContentFrame" Content="Yeni Randevu"/>
                                    <HyperlinkButton x:Name="lnkGecmisRandevular" Style="{StaticResource LinkStyle}" 
                                     NavigateUri="/Liste?tip=5" TargetName="ContentFrame" Content="Geçmiş Randevular"/>
                                </StackPanel>
                            </dxn:NavBarGroup.Content>
                        </dxn:NavBarGroup>
                        <dxn:NavBarGroup Header="Kampanyalar" DisplaySource="Content" ImageSource="/NavBarDemo;component/Images/NavigationPaneOptionsDemo/Tasks_25.png">
                            <dxn:NavBarGroup.Content>
                                <StackPanel>
                                    <HyperlinkButton x:Name="lnkKampanyalar" Style="{StaticResource LinkStyle}" 
                                     NavigateUri="/Liste?tip=17" TargetName="ContentFrame" Content="Kampanyalar"/>
                                </StackPanel>
                            </dxn:NavBarGroup.Content>
                        </dxn:NavBarGroup>
                        <dxn:NavBarGroup Header="Tanımlamalar" DisplaySource="Content" ImageSource="/NavBarDemo;component/Images/NavigationPaneOptionsDemo/Tasks_25.png">
                            <dxn:NavBarGroup.Content>
                                <StackPanel>
                                    <HyperlinkButton x:Name="lnkFirmaDurumlari" Style="{StaticResource LinkStyle}" 
                                     NavigateUri="/Liste?tip=7" TargetName="ContentFrame" Content="Firma Durum Tanımları"/>
                                    <HyperlinkButton x:Name="lnkFirmaTipleri" Style="{StaticResource LinkStyle}" 
                                     NavigateUri="/Liste?tip=8" TargetName="ContentFrame" Content="Firma Tipleri"/>
                                    <HyperlinkButton x:Name="lnkGorusmeSekilleri" Style="{StaticResource LinkStyle}" 
                                     NavigateUri="/Liste?tip=9" TargetName="ContentFrame" Content="Görüşme Tipi"/>
                                    <HyperlinkButton x:Name="lnkKapamaTanimlari" Style="{StaticResource LinkStyle}" 
                                     NavigateUri="/Liste?tip=10" TargetName="ContentFrame" Content="Kapama Tanımları"/>
                                    <HyperlinkButton x:Name="lnkDeparman" Style="{StaticResource LinkStyle}" 
                                     NavigateUri="/Liste?tip=11" TargetName="ContentFrame" Content="Departman Tanımları"/>
                                    <HyperlinkButton x:Name="lnkGorevler" Style="{StaticResource LinkStyle}" 
                                     NavigateUri="/Liste?tip=12" TargetName="ContentFrame" Content="Görev Tanımları"/>
                                    <HyperlinkButton x:Name="lnkIslemMerkezi" Style="{StaticResource LinkStyle}" 
                                     NavigateUri="/Liste?tip=13" TargetName="ContentFrame" Content="İşlem Merkezleri"/>
                                    <HyperlinkButton x:Name="lnkKullaniciParametre" Style="{StaticResource LinkStyle}" 
                                     Click="lnkKullaniciParametre_Click_1" TargetName="ContentFrame" Content="Kullanıcı Parametreleri"/>
                                    <HyperlinkButton x:Name="lnkRandevuTipi" Style="{StaticResource LinkStyle}" 
                                     NavigateUri="/Liste?tip=16" TargetName="ContentFrame" Content="Randevu Tipi"/>
                                    <HyperlinkButton x:Name="lnkParametre" Style="{StaticResource LinkStyle}" 
                                     Click="lnkParametre_Click_1" TargetName="ContentFrame" Content="Sistem Tanımları"/>
                                    <HyperlinkButton x:Name="lnkAnketTanim" Style="{StaticResource LinkStyle}" 
                                     NavigateUri="/Liste?tip=18" TargetName="ContentFrame" Content="Anket Tanımları"/>
                                    <HyperlinkButton x:Name="lnkRaporTanim" Style="{StaticResource LinkStyle}" 
                                     Click="lnkRaporTanim_Click_1" TargetName="ContentFrame" Content="Rapor Tanımları"/>
                                </StackPanel>
                            </dxn:NavBarGroup.Content>
                        </dxn:NavBarGroup>
                        <dxn:NavBarGroup Header="Potansiyel Cari Yönetimi" DisplaySource="Content" ImageSource="/NavBarDemo;component/Images/NavigationPaneOptionsDemo/Tasks_25.png">
                            <dxn:NavBarGroup.Content>
                                <StackPanel>
                                    <HyperlinkButton x:Name="lnkAdayCariYonetimi" Style="{StaticResource LinkStyle}" 
                                     NavigateUri="/Liste?tip=15" TargetName="ContentFrame" Content="Potansiyel Cari Yönetimi"/>
                                </StackPanel>
                            </dxn:NavBarGroup.Content>
                        </dxn:NavBarGroup>
                        <dxn:NavBarGroup Header="Raporlar" x:Name="navRapor" DisplaySource="Content" ImageSource="/NavBarDemo;component/Images/NavigationPaneOptionsDemo/Tasks_25.png">
                            <dxn:NavBarGroup.Content>
                                <StackPanel x:Name="panel">
                                </StackPanel>
                            </dxn:NavBarGroup.Content>
                        </dxn:NavBarGroup>
                    </dxn:NavBarControl.Groups>
                </dxn:NavBarControl>
            </Border>
            <Border x:Name="navBorder" BorderBrush="White" BorderThickness="2" Grid.Column="1" Margin="10,15,0,10" Grid.Row="1" CornerRadius="10" Background="White">
                <navigation:Frame x:Name="ContentFrame"  
                              Source="/Home" Navigated="ContentFrame_Navigated" NavigationFailed="ContentFrame_NavigationFailed" Margin="5" Background="{x:Null}" Content="(/Liste?tip=0)">
                    <navigation:Frame.UriMapper>
                        <uriMapper:UriMapper>
                            <uriMapper:UriMapping Uri="" MappedUri="/Views/Home.xaml"/>
                            <uriMapper:UriMapping Uri="/{pageName}" MappedUri="/Views/{pageName}.xaml"/>
                        </uriMapper:UriMapper>
                    </navigation:Frame.UriMapper>
                </navigation:Frame>
            </Border>
        </Grid>

    </Grid>
</navigation:Page>
